







[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Adds a new value to be associated with a key. If duplicate values are permitted, this method always adds a new key-value pair to the dictionary.
If duplicate values are not permitted, and key already has a value equal to value associated with it, then that value is replaced with value, and the number of values associate with key is unchanged.
Namespace: Wintellect.PowerCollections
Assembly:
PowerCollections (in PowerCollections.dll)
Syntax
C# |
---|
public void Add( TKey key, TValue value ) |
Visual Basic (Declaration) |
---|
Public Sub Add ( _ key As TKey, _ value As TValue _ ) |
Visual C++ |
---|
public: virtual void Add ( TKey key, TValue value ) sealed |
Parameters
- key
- TKey
The key to associate with.
- value
- TValue
The value to associated with key.
See Also
Wintellect.PowerCollections Namespace